package com.zhang.util;

import java.io.UnsupportedEncodingException;

/*解決Get请求参数乱码*/
public class GetCode {

    public static String Code(String str){
        if(null != str && !"".equals(str) && !"null".equals(str)){
            try {
                return new String(str.getBytes("iso-8859-1"),"UTF-8");
            } catch (UnsupportedEncodingException e) {
            }
        }

        return null;
    }

}
